﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace SZSLSystem.BLL
{
    public class Pager
    {
        SZSLSystem.DAL.GetPager bll;
        /// <summary>
        /// GetCount
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public int getCount(string FieldID, string DataTableName, string strWhere)
        {
            bll = new SZSLSystem.DAL.GetPager();
            return bll.getCount(FieldID, DataTableName, strWhere);
        }

        /// <summary>
        /// GetWherePagelist
        /// </summary>
        /// <param name="FieldID"></param>
        /// <param name="DataTableName"></param>
        /// <param name="pageSize"></param>
        /// <param name="currentPageIndex"></param>
        /// <param name="strWhere"></param>
        /// <param name="OrderFieldID"></param>
        /// <param name="OrderFlag"></param>
        /// <returns>DataSet</returns>
        public DataSet GetWherePagelist(string FieldID, string DataTableName, int pageSize, int currentPageIndex, string strWhere, string OrderFieldID, int OrderFlag)
        {
            bll = new SZSLSystem.DAL.GetPager();
            return bll.GetWherePagelist(FieldID, DataTableName, pageSize, currentPageIndex, strWhere, OrderFieldID, OrderFlag);
        }

      

        /// <summary>
        /// GetWherePagelist
        /// </summary>
        /// <param name="FieldID"></param>
        /// <param name="DataTableName"></param>
        /// <param name="pageSize"></param>
        /// <param name="currentPageIndex"></param>
        /// <param name="strWhere"></param>
        /// <param name="OrderFieldID"></param>
        /// <param name="OrderFlag"></param>
        /// <returns>DataSet</returns>
        public DataSet GetWherePagelist(string FieldID, string showFields, string DataTableName, int pageSize, int currentPageIndex, string strWhere, string OrderFieldID, int OrderFlag)
        {
            bll = new SZSLSystem.DAL.GetPager();
            return bll.GetWherePagelist(FieldID, showFields, DataTableName, pageSize, currentPageIndex, strWhere, OrderFieldID, OrderFlag);
        }


        public DataSet GetWherePagelist_zp(int pageSize, int currentPageIndex, string strWhere)
        {
            bll = new SZSLSystem.DAL.GetPager();
            return bll.GetWherePagelist_zp(pageSize, currentPageIndex, strWhere);
        }

        /// <summary>
        /// GetWherePagelist
        /// </summary>
        /// <param name="FieldID"></param>
        /// <param name="DataTableName"></param>
        /// <param name="pageSize"></param>
        /// <param name="currentPageIndex"></param>
        /// <param name="strWhere"></param>
        /// <param name="OrderFieldID"></param>
        /// <param name="OrderFlag"></param>
        /// <returns>DataSet</returns>
        public DataSet GetWherePagelist1(string FieldID, string showFields, string DataTableName, int pageSize, int currentPageIndex, string strWhere, string OrderFieldID, int OrderFlag,string zhouzhanadd)
        {
            bll = new SZSLSystem.DAL.GetPager();
            return bll.GetWherePagelist1(FieldID, showFields, DataTableName, pageSize, currentPageIndex, strWhere, OrderFieldID, OrderFlag, zhouzhanadd);
        }
    }
}
